package com.cqcet.wenchuang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cqcet.wenchuang.dto.OrderDto;
import com.cqcet.wenchuang.entity.Orders;

public interface OrdersService extends IService<Orders> {
    /**
     * 保存订单同时保存订单详细
     * @param orderDto
     */
    void saveWithDetails(OrderDto orderDto);


    /**
     * 根据购物车id下单并保存订单详细
     * @param orderDto
     */
    void saveFromShoppingCart(OrderDto orderDto);
}
